package com.ssmTest;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by zor on 2018/4/2.
 */
public class Test {
  public static void main(String[] args) {
    String regEx = "(\\d+.?\\d+)";
    Pattern p = Pattern.compile(regEx);
    Matcher m = p.matcher("100.30元/亩");
    if (m.find())
      System.out.println(m.group());

  }
}
